package com.derbysoft.synxisadapter.webservice.impl;

import com.derbysoft.synxisadapter.commons.dto.synxis.OTACancelRQ;
import com.derbysoft.synxisadapter.commons.dto.synxis.OTACancelRS;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.ws.client.core.WebServiceTemplate;

@Component("cancellationWebService")
public class CancellationWebServiceImpl extends AbstractReservationWebService<OTACancelRQ, OTACancelRS> {

    @Autowired
    @Qualifier("cancelWebServiceTemplate")
    protected WebServiceTemplate cancelWebServiceTemplate;

    @Override
    protected WebServiceTemplate getWebServiceTemplate() {
        return cancelWebServiceTemplate;
    }

    public void setCancelWebServiceTemplate(WebServiceTemplate cancelWebServiceTemplate) {
        this.cancelWebServiceTemplate = cancelWebServiceTemplate;
    }
}
